From df9d832c52490c56d41638e9490e0c0e1f297238 Mon Sep 17 00:00:00 2001 From: "Panashe M. Fundira" Date: Tue, 5 Jul 2016 21:36:09 -0400 Subject: [PATCH] Set environment variable for rustc in custom_build.rs --- src/cargo/ops/cargo_rustc/custom_build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_rustc/custom_build.rs b/src/cargo/ops/cargo_rustc/custom_build.rs index 8660a65ee..c3b55e868 100644 --- a/src/cargo/ops/cargo_rustc/custom_build.rs +++ b/src/cargo/ops/cargo_rustc/custom_build.rs @@ -112,7 +112,8 @@ fn build_work<'a, 'cfg>(cx: &mut Context<'a, 'cfg>, unit: &Unit<'a>) .env("DEBUG", &profile.debuginfo.to_string()) .env("OPT_LEVEL", &profile.opt_level.to_string()) .env("PROFILE", if cx.build_config.release {"release"} else {"debug"}) - .env("HOST", &cx.config.rustc_info().host); + .env("HOST", &cx.config.rustc_info().host) + .env("RUSTC", &cx.config.rustc()); if let Some(links) = unit.pkg.manifest().links(){ p.env("CARGO_MANIFEST_LINKS", links); -- 2.30.2